﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DARE
{
    /// <summary>
    /// This manages everything that concerns inputs (Mouse, Keyboard, GamePad).
    /// </summary>
    public class CInputMgr
    {
        #region fields

        private CKeyboard m_keyboard;
        private CMouse m_mouse;
        private CGamepad m_gamepad;

        #endregion

        #region properties

        public CKeyboard Keyboard { get { return m_keyboard; } }
        public CMouse Mouse { get { return m_mouse; } }

        #endregion

        #region ctor

        public CInputMgr()
        {
            m_keyboard = new CKeyboard();
            m_mouse = new CMouse();
            m_gamepad = new CGamepad();
        }

        #endregion

        #region methods

        public void Clear()
        {
            m_keyboard.Clear();
            m_mouse.Clear();
        }

        public void Update()
        {
            m_mouse.Update();
            m_keyboard.Update();
        }

        #endregion
    }
}
